From 63947f714b6b1d149ba8793fa97b1c82798d1c95 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 17 Apr 2017 17:55:59 -0700 Subject: [PATCH] Clean some more env vars during tests Will be required to run tests as part of rust-lang/rust --- tests/cargotest/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cargotest/lib.rs b/tests/cargotest/lib.rs index 1b5899b7f..a4410a853 100644 --- a/tests/cargotest/lib.rs +++ b/tests/cargotest/lib.rs @@ -51,7 +51,9 @@ fn _process(t: &OsStr) -> cargo::util::ProcessBuilder { .env("HOME", support::paths::home()) .env("CARGO_HOME", support::paths::home().join(".cargo")) .env("__CARGO_TEST_ROOT", support::paths::root()) + .env_remove("__CARGO_DEFAULT_LIB_METADATA") .env_remove("RUSTC") + .env_remove("RUSTDOC") .env_remove("RUSTFLAGS") .env_remove("CARGO_INCREMENTAL") .env_remove("XDG_CONFIG_HOME") // see #2345 -- 2.30.2